package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishByCategoryIdVO;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    PageResult findAll(DishPageQueryDTO dishPageQueryDTO);

    Integer add(DishDTO dishDTO);

    Integer setStatus(Long id, Integer status);

    DishVO findById(Long id);

    Integer modify(DishDTO dishDTO);

    Integer remove(Integer[] ids);

    List<Dish> findByCategoryId(Long categoryId);
}
